package models

import (
	"github.com/beego/beego/v2/client/orm"
)

// 测试 mysql 用，可删。
type Users struct {
	UserId        int64  `db:"user_id" orm:"auto"`
	Gender        int    `db:"gender"`
	SubRegionId   int    `db:"sub_region_id"`
	Status        int    `db:"status"`
	UpdateTime    int64  `db:"update_time"`
	Nick          string `db:"nick"`
	HeadImg       string `db:"head_img"`
	Age           int    `db:"age"`
	FreeChatCount int    `db:"free_chat_count"`
}

type AnchorInfo struct {
	AnchorId int64  `json:"anchorId" gorm:"column:anchorId"`
	Token    string `json:"token" gorm:"column:token"`
}

func init() {
	orm.RegisterModel(new(Users))
}

type UserToken struct {
	UserId int    `json:"user_id" gorm:"column:user_id" bson:"user_id"`
	Token  string `json:"token" gorm:"column:token" bson:"token"`
}
